package cn.pangza.user.entity.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class LoginRequest {

    @NotEmpty(message = "用户名不能为空")
    @NotNull(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "用户名不能为空")
    @NotNull(message = "用户名不能为空")
    private String password;
}
